/***********************************************************************
 * Module:  Prjfile.java
 * Author:  Administrator
 * Purpose: Defines the Class Prjfile
 ***********************************************************************/
package com.sogoodsoft.entity.project;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import com.sogoodsoft.entity.IdEntity;

/**
 * 项目文件 一个项目可以对应多个项目文件
 */
@Entity
@Table(name = "PRJFILE")
@Cache(usage = CacheConcurrencyStrategy.NONE)
public class PrjFile extends IdEntity{
	/** 项目文件主键 */
	/** 原始文件名 */
	public java.lang.String originalName;
	/** 存储地址 */
	public java.lang.String filepath;
	/** 上传时间 */
	public java.util.Date uploadTime;
	/** 文件存储名 */
	public java.lang.String storeName;

	public Project project;

	/** @pdGenerated default parent getter */
	
	@ManyToOne
	@JoinColumn(name="PRJ_ID")
	public Project getProject() {
		return project;
	}



	@Column(name="ORIGINAL_NAME")
	public java.lang.String getOriginalName() {
		return originalName;
	}

	public void setOriginalName(java.lang.String originalName) {
		this.originalName = originalName;
	}

	@Column(name="FILEPATH")
	public java.lang.String getFilepath() {
		return filepath;
	}

	public void setFilepath(java.lang.String filepath) {
		this.filepath = filepath;
	}
	
	@Transient
	public java.util.Date getUploadTime() {
		return uploadTime;
	}

	public void setUploadTime(java.util.Date uploadTime) {
		this.uploadTime = uploadTime;
	}

	@Column(name="STORE_NAME")
	public java.lang.String getStoreName() {
		return storeName;
	}

	public void setStoreName(java.lang.String storeName) {
		this.storeName = storeName;
	}



	public void setProject(Project project) {
		this.project = project;
	}

	
}